<!DOCTYPE html>
{% block content %}
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>

<body>
    <form action="/edit/" method="post">
         {% csrf_token %}
        <table>
            <tbody>
             <tr>
                    <td>更改:</td>
                </tr>
              {% if post %}
                <tr>
                    <td>appid:<input type="text" name="id"  value="{{ post.id }}"  readonly></td>
                    <td>地址:<input type="text" name="addr" value="{{ post.addr }}"></td>
                     <td>支付方式:<input type="text" name="zhifu" value="{{ post.zhifu }}"></td>
                    <td><p><input type="checkbox" name="aspectRatio" value="0" /> 横屏</p>
                    <td><p><input type="checkbox" name="h5switch" value="0" /> 正在审核中</p>
                    </td>
                </tr>
            {% endif %}
            </tbody>
        </table><input type="submit" value="提交">
    </form>
    <table>
         <tbody>
         <tr>
             <td> </td>
         </tr>
        </tbody>
    </table>
     <table>
         {% if post %}
        <tbody>
          <a href="/delete/?appid={{ post.id }}">删除</a>
        </tbody>
         {% endif %}
    </table>
</body>
</html>
{% endblock %}